package com.ruoyi.shop.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.shop.mapper.PlMapper;
import com.ruoyi.shop.domain.Pl;
import com.ruoyi.shop.service.IPlService;

/**
 * 评论Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-19
 */
@Service
public class PlServiceImpl implements IPlService 
{
    @Autowired
    private PlMapper plMapper;

    /**
     * 查询评论
     * 
     * @param plId 评论主键
     * @return 评论
     */
    @Override
    public Pl selectPlByPlId(Long plId)
    {
        return plMapper.selectPlByPlId(plId);
    }

    /**
     * 查询评论列表
     * 
     * @param pl 评论
     * @return 评论
     */
    @Override
    public List<Pl> selectPlList(Pl pl)
    {
        return plMapper.selectPlList(pl);
    }

    /**
     * 新增评论
     * 
     * @param pl 评论
     * @return 结果
     */
    @Override
    public int insertPl(Pl pl)
    {
        return plMapper.insertPl(pl);
    }

    /**
     * 修改评论
     * 
     * @param pl 评论
     * @return 结果
     */
    @Override
    public int updatePl(Pl pl)
    {
        return plMapper.updatePl(pl);
    }

    /**
     * 批量删除评论
     * 
     * @param plIds 需要删除的评论主键
     * @return 结果
     */
    @Override
    public int deletePlByPlIds(Long[] plIds)
    {
        return plMapper.deletePlByPlIds(plIds);
    }

    /**
     * 删除评论信息
     * 
     * @param plId 评论主键
     * @return 结果
     */
    @Override
    public int deletePlByPlId(Long plId)
    {
        return plMapper.deletePlByPlId(plId);
    }
}
